<?php

Class Commodity
{
    private $name;
    private $Inventory;
    private $price;

    function show()
    {
        echo $this->name."卖".$this->price."块钱"."<br>";
    }

    function __set($name, $value)
    {
        $this->$name=$value;
    }
}